using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace SMS.Common.Entities
{
    public class StocktakingDetail
    {
        private string stocktakingId;
        [XmlIgnore]
        public string StocktakingID
        {
            get { return stocktakingId; }
            set { stocktakingId = value; }
        }

        private string materialId;
        [XmlElement("Code",Order=1)]
        public string MaterialID
        {
            get { return materialId; }
            set { materialId = value; }
        }

        private string materialName;
        [XmlElement("Name",Order=2)]
        public string MaterialName
        {
            get { return materialName; }
            set { materialName = value; }
        }

        private float qty;
        [XmlElement("StocktakingQty",Order=5)]
        public float Qty
        {
            get { return qty; }
            set { qty = value; }
        }

        private string orderUnit;
        [XmlElement("OrderUnit",Order=3)]
        public string OrderUnit
        {
            get { return orderUnit; }
            set { orderUnit = value; }
        }
        private string materialSpec;
        [XmlElement("Spec",Order=4)]
        public string MaterialSpec
        {
            get { return materialSpec; }
            set { materialSpec = value; }
        }

        public StocktakingDetail() { }
        public StocktakingDetail(string materialId, string materialName, float qty, string orderUnit,string materialSpec)
        {
            this.materialId = materialId;
            this.materialName = materialName;
            this.qty = qty;
            this.orderUnit = orderUnit;
            this.materialSpec = materialSpec;
         }	
    }
}
